// 医院状态的类型
export type Status = 0 | 1
// 获取医院列表参数的类型
export interface IhospitalListParams {
  page: number
  limit: number
  hosname?: string
  hoscode?: string
  hostype?: string
  provinceCode?: string
  cityCode?: string
  districtCode?: string
  status?: Status
}

// 一个医院数据对象的类型
export interface IhospitalItem {
  id: string
  param: {
    hostypeString: string
    fullAddress: string
  }
  hosname: string
  logoData: string
  status: Status
  createTime: string
}
// 存储医院对象的数组的类型
export type IhospitalList = IhospitalItem[]

// 获取医院列表数据响应主体中数据对象的类型
export interface IhospitalListRes {
  content: IhospitalList
  totalElements: number
}

// 省,市,区数据对象类型
export interface IdictItem {
  id: string
  name: string
  value: string
}

export type IdictList = IdictItem[]

// 科室数据类型
export type IdepList = IdepItem[]
export interface IdepItem {
  depcode: string
  depname: string
  children: IdepList
  disabled?: boolean
}

// 排班规则响应数据类型
export interface IsheduleRuleItem {
  workDate: string

  dayOfWeek: string

  reservedNumber: number
  availableNumber: number
}
export type IscheduleRuleList = IsheduleRuleItem[]
export interface IscheduleRuleRes {
  total: number
  bookingScheduleList: IscheduleRuleList
  baseMap: {
    hosname: string
  }
}
